Robotics 1.0 Lesson Plan
Lesson: 5 - Make your own Piano.
1 - Time : 1:30 minutes, maximum 4 students per group.
Introduction to Arrays using Neopixels on the CPX
Understanding baseline capacitance using A1 and an alligator clip
Create a piano using touch pads A1–A7 and the speaker.
Click here to view code hints
Click here to view the connection diagrams
Here is the Solution:
cp.play_tone()
What would happen if your touch input points to an array index that doesn’t exist?